package cn.icode;

import redis.clients.johm.Attribute;
import redis.clients.johm.Id;
import redis.clients.johm.Indexed;
import redis.clients.johm.Model;

@Model
public class User {
    @Id
    private Long id;
    @Attribute
    @Indexed
    private String name;
    @Attribute
    private String password;

    //
    //public User(int id,String name){
    //    this.id = id;
    //    this.name = name;
    //}
    //
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}

